#pragma once

#include "lvgl.h"
#include "lvgl_gui.h"

#include "esp_log.h"
#include "esp_timer.h"
#include "esp_adc_cal.h"

#include "driver/i2c.h"
#include "driver/adc.h"
#include "driver/ledc.h"
#include "driver/temperature_sensor.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "page/list.h"

typedef struct
{
    lv_obj_t *label_timer;
    lv_obj_t *label_adc;
    lv_obj_t *label_speed;
    lv_obj_t *label_alt;
    lv_obj_t *label_satellite_num;
    lv_obj_t *label_ne;
    lv_obj_t *label_coordinate;
    lv_obj_t *label_runtime;
    lv_obj_t *label_gps_status;
    lv_obj_t *label_direction;
    lv_obj_t *label_temp;
} home_app_t;

void create_home_app(home_app_t *app);
void remove_home_app();